﻿using System;
using System.Collections;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using AnyOffice.DAL;
using AnyOffice.Components;
namespace AnyOffice.general.news.manage
{
    public partial class re_delete : ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int num = (Request.QueryString["news_id"] == null) ? 0 : int.Parse(Request.QueryString["news_id"].ToString());
            int commentId = (Request.QueryString["comment_id"] == null) ? 0 : int.Parse(Request.QueryString["comment_id"].ToString());
            new NewsCommentDao().Delete(base.Conn, commentId);
            base.CloseConn();
            Response.Redirect("re_news.aspx?news_id=" + num.ToString());
        }

 

 

    }
}
